From: Niklas Laxström Date: Mon, 7 May 2007 18:01:11 +0000 (+0000) Subject: * Escaping the title X-Git-Tag: 1.31.0-rc.0~53034 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=f3179ac00c31b4183aea7b5a979480d1d6530041;p=lhc%2Fweb%2Fwiklou.git * Escaping the title --- diff --git a/includes/SpecialCategories.php b/includes/SpecialCategories.php index 7191fe9d55..fd3a51ebfd 100644 --- a/includes/SpecialCategories.php +++ b/includes/SpecialCategories.php @@ -53,11 +53,10 @@ class CategoryPager extends AlphabeticPager { function formatRow($result) { global $wgLang; $title = Title::makeTitle( NS_CATEGORY, $result->cl_to ); - return Xml::tags('li', null, - $this->getSkin()->makeLinkObj( $title, $title->getText() ) . ' (' . - wfMsgExt( 'nmembers', array( 'parsemag', 'escape'), - $wgLang->formatNum( $result->count ) ) . ')' - ) . "\n"; + $titleText = $this->getSkin()->makeLinkObj( $title, htmlspecialchars( $title->getText() ) ); + $count = wfMsgExt( 'nmembers', array( 'parsemag', 'escape'), + $wgLang->formatNum( $result->count ) ); + return Xml::tags('li', null, "$titleText ($count)" ) . "\n"; } }